﻿using IndoorPosition.Server.Core.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IndoorPosition.Server.Application
{
    /// <summary>
    /// 蓝牙基站处理逻辑接口
    /// </summary>
    public interface IStationService
    {
        /// <summary>
        /// 添加基站
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<int> AddAsync(StationInputDto input);

        /// <summary>
        /// 删除基站
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task DeleteAsync(int id);

        /// <summary>
        /// 更新基站信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task UpdateAsync(StationInputDto input);

        /// <summary>
        /// 获取某一个基站信息
        /// </summary>
        /// <param name="uuid"></param>
        /// <returns></returns>
        Task<StationDto> GetAsync(string uuid);

        /// <summary>
        /// 分页获取基站
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<PagedList<StationDto>> ListAsync(PageInputDto input);

        /// <summary>
        /// 获取所有基站
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<List<StationDto>> ListAllAsync(SearchInputDto input);

        /// <summary>
        /// 获取某一楼层的所有基站
        /// </summary>
        /// <param name="floorId"></param>
        /// <returns></returns>
        Task<List<StationDto>> ListByFloorAsync(int floorId);

        /// <summary>
        /// 设置基站位置
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task SetPositionAsync(PositionInputDto input);
        
    }
}
